package com.ai.platform.system.mapper;

import com.ai.platform.system.entity.SysPermission;
import com.ai.platform.system.entity.SysRole;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author yeyingsheng
 * @since 2018-05-12
 */
public interface SysPermissionMapper extends BaseMapper<SysPermission> {

    List<SysPermission> queryPermissionByRoleId(Integer roleId) throws SQLException;

    List<SysPermission> queryPermissionByRoleList(@Param("roleList") List<SysRole> roleList) throws SQLException;

}
